package com.store.dto;

import lombok.Data;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

/**
 * 更新购物车请求
 */
@Data
public class CartUpdateRequest {
    
    /**
     * 购物车ID
     */
    @NotNull(message = "购物车ID不能为空")
    private Long id;
    
    /**
     * 数量
     */
    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "数量至少为1")
    private Integer quantity;
}

